<%@ page import="java.time.LocalDateTime" %>
<%--
  Created by IntelliJ IDEA.
  User: 27433
  Date: 2023/11/17
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Show Time</title>
    <style>
        body{
            background: aqua;
        }
        div{
            background-color: aquamarine;
        }
    </style>
</head>
<body>
<% LocalDateTime now = LocalDateTime.now(); %>

<div align="center">
    <h1>
    The time is:<%= now.getYear()+":"+now.getMonthValue()+":"+now.getDayOfMonth()+"  "+now.getHour()+":"+now.getMinute()+":"+now.getSecond()  %>
    </h1>
</div>
<script>
    setInterval(() => {location.reload()},1000);
</script>

</body>
</html>
